package com.hry.store.service.impl;

import com.hry.store.dao.HotProductMapper;
import com.hry.store.pojo.HotProduct;
import com.hry.store.service.HotProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HotProductServiceImpl implements HotProductService {
    @Autowired
    private HotProductMapper hotProductMapper;
    //获取热门产品
    @Override
    public HotProduct getHotProduct(Integer secondCategoryId) {
        return hotProductMapper.selectByPrimaryKey(secondCategoryId);
    }
}
